package com.game.simplegame.creature;

import com.game.simplegame.world.World;

/**
 * Created by Administrator on 2017-04-18.
 */
public class WorkMan extends Creature {

    int money;

    public WorkMan(World world){
        super(new SleepStatus(), world);
    }

    @Override
    public void update(long dtSec, World world) {
        super.update(dtSec, world);
        if(energy < 0){
            changeTo(new DeathStatus());
        }
        System.out.println("energy:"+energy);
    }


    public void addMoney(int val){
        money += val;
    }

    public double getMiningEnergyCost(){
        return -0.06;
    }
}
